// packageF/silverPointPay/components/lineInp.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    istype: {
      type: null,
      value: "text"
    },
    val: {
      type: String,
      value: ""
    },
    place: {
      type: String,
      value: ""
    },
    title: {
      type: String,
      value: ""
    },
    link: {
      type: Boolean,
      value: false
    },
    Td: {
      type: null,
      value: ""
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    blurInp(e) {
      let val = e.detail.value;
      this.triggerEvent("valInp", {
        value: val,
        type: this.data.Td
      })
    },
    clickTap(e) {
      if (this.data.Td == "valid_day" || this.data.Td == "card_type" || this.data.Td == "bank") {
        this.triggerEvent("childParams", this.data.Td)
        return;
      }
    }
  }
})